import request from '@/utils/request'

// 查询DXC产品信息列表
export function listProduct(query) {
  return request({
    url: '/safety/product/list',
    method: 'get',
    params: query
  })
}

// 查询DXC产品信息详细
export function getProduct(id) {
  return request({
    url: '/safety/product/' + id,
    method: 'get'
  })
}

// 新增DXC产品信息
export function addProduct(data) {
  return request({
    url: '/safety/product',
    method: 'post',
    data: data
  })
}

// 修改DXC产品信息
export function updateProduct(data) {
  return request({
    url: '/safety/product',
    method: 'put',
    data: data
  })
}

// 删除DXC产品信息
export function delProduct(id) {
  return request({
    url: '/safety/product/' + id,
    method: 'delete'
  })
}


// 根据Code导入数据
export function queryPlmData(data) {
    return request({
      url: '/safety/product/queryPlmData',
      method: 'post',
      data: data
    })
  }